tests: Use skip_without_ostree_feature to detect libarchive, composefs
authorSimon McVittie <smcv@collabora.com>
Mon, 19 Feb 2024 16:07:13 +0000 (16:07 +0000)
committerSimon McVittie <smcv@debian.org>
Mon, 19 Feb 2024 21:02:32 +0000 (21:02 +0000)
commite5f7fbe52707aea61059a0197ac32835b4852e65
tree2f274f3e05d257e895b5577844678e8819d0f1bf
parent92b6c5ababde2e62222f221745f6bac111ada7dd
tests: Use skip_without_ostree_feature to detect libarchive, composefs

This avoids false negatives from `ostree --version | grep -q ...`
exiting with failure under `set -o pipefail` because `grep -q` can exit
as soon as it sees the desired string, leaving `ostree --version` to be
terminated by `SIGPIPE` next time it writes to stdout.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Forwarded: https://github.com/ostreedev/ostree/pull/3184

Gbp-Pq: Name tests-Use-skip_without_ostree_feature-to-detect-libarchiv.patch
tests/test-composefs.sh
tests/test-export.sh
tests/test-libarchive.sh